/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.roque.rueda.photobucket.ui;

import com.photobucket.api.service.SearchStrategy;
import com.photobucket.api.service.model.Media;
import java.util.ArrayList;
import java.util.List;

/**
 * Result of the photobucket api
 * @author Roque Rueda 
 */
public class SearchResult {
    
    private int totalResult;
    private int totalPages;
    private List<Media> mediaResult;

    /**
     * Initialize a search result instance with the default values
     */
    public SearchResult() {
        this(0,0,new ArrayList<Media>());
    }
    
    /**
     * Initialize a seach result instance with the given values
     * @param totalResult number of results found in the search
     * @param totalPages number of pagues found in the search
     * @param mediaResult list of media found in the search
     */
    public SearchResult(int totalResult, int totalPages, List<Media> mediaResult) {
        this.totalResult = totalResult;
        this.totalPages = totalPages;
        this.mediaResult = mediaResult;
    }

    /**
     * @return the totalResult
     */
    public int getTotalResult() {
        return totalResult;
    }

    /**
     * @param totalResult the totalResult to set
     */
    public void setTotalResult(int totalResult) {
        this.totalResult = totalResult;
    }

    /**
     * @return the totalPages
     */
    public int getTotalPages() {
        return totalPages;
    }

    /**
     * @param totalPages the totalPages to set
     */
    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    /**
     * @return the mediaResult
     */
    public List<Media> getMediaResult() {
        return mediaResult;
    }

    /**
     * @param mediaResult the mediaResult to set
     */
    public void setMediaResult(List<Media> mediaResult) {
        this.mediaResult = mediaResult;
    }
    
    
}
